package com.springboot.cloud.authorization.provider;

import com.springboot.cloud.authorization.entity.Role;
import com.springboot.cloud.core.model.SystemUser;
import com.springboot.cloud.core.utils.Result;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;

/**
 * <p>  </p>
 *
 * @author Bertram
 * @since 11/5/2019 11:42 AM
 */
@Component
public class SystemProviderFallback implements SystemProvider {


    @Override
    public Result<SystemUser> getUserByUniqueId(String uniqueId) {
        return Result.success(new SystemUser());
    }

    @Override
    public Result<Set<Role>> queryRolesByUserId(String userId) {
        return Result.success(new HashSet<Role>());
    }
}
